import { Row } from "antd";
import defaultData from "./data";
import Props from "../base/Props";
import { WeaInput, WeaLocaleProvider } from "ecCom";

const getLabel = WeaLocaleProvider.getLabel;

export default class NumberProps extends Props {
  renderContent() {
    const { location } = this.props.data;

    return (
      <div className='wea-edc-map-conatiner'>
        <Row>
          <label>{getLabel('502396', '地址')}</label>
          <WeaInput
            value={location}
            onChange={this.handlePropChange('location', 800)}
          />
          <span className="map-tip">{getLabel('502507', '提示：可输入中文地址、坐标 (格式：经度,纬度)')}</span>
        </Row>
      </div>
    );
  }
}

NumberProps.defaultProps = {
  data: defaultData,
  onChange: () => { }
};